<?php
/* @var $this InstrumentController */
/* @var $model InstrumentDate */

$this->breadcrumbs=array(
    '大型仪器管理'=>array('admin'),
    $model->instrument->title=>array('view','id'=>$model->instrument->instrument_id),
    "时间表 # ".$model->date_id,
);

$this->menu=array(
    array('label'=>'返回 '.$model->instrument->title, 'url'=>array('view','id'=>$model->instrument->instrument_id)),
	array('label'=>'录入时间表', 'url'=>array('createDate','iid'=>$model->instrument_id)),
    array('label'=>'更新当前时间表', 'url'=>array('updateDate', 'id'=>$model->date_id)),
    array('label'=>'删除当前时间表', 'url'=>'#', 'linkOptions'=>array('submit'=>array('deleteDate','id'=>$model->date_id),'confirm'=>'Are you sure you want to delete this item?')),
);
?>

<h1>时间表 # <?php echo $model->date_id; ?></h1>
<p>当前仪器类：<?php echo $model->instrument->title?></p>
<?php $this->widget('zii.widgets.CDetailView', array(
    'data'=>$model,
    'attributes'=>array(
        'start_date',
        'end_date',
        'start_time',
        'end_time',
        array(
            'name'=>'enabled',
            'value'=>$model->getEnabledLable(),
        ),
    ),
)); ?>
<h4>
即： <font style="color:red"><?php echo $model->start_date?></font>
至 <font style="color:red"><?php echo $model->end_date?></font> 每天
<font style="color:blue"><?php echo $model->start_time?>:00</font> ~
<font style="color:blue"><?php echo $model->end_time?>:00</font>  时间段内
<font style="color:orange"><?php echo $model->getEnabledLable()?></font>
</h4>
